package com.xunshi.hikangvision.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/index")
    public String index(Model model){
        model.addAttribute("obj", "hello");
        return "index";
    }

    @GetMapping("/websocket")
    public String websocket(){
        return "websocket";
    }

}
